let classif = document.querySelector('#classif')

ajax({
    url: 'http://chst.vip:1234/api/getcoupon'
}).then(res => {
    console.log(res.result);
    let item = res.result
    classif.innerHTML = `<a href="couponproduct.html?couponId=${item[0].couponId}"><img src="../images/kdj.png" alt=""></a>
    <a href="couponproduct.html?couponId=${item[1].couponId}"><img src="../images/bsk.png" alt=""></a>
    <a href="couponproduct.html?couponId=${item[2].couponId}"><img src="../images/byh.png" alt=""></a>
    <a href="couponproduct.html?couponId=${item[3].couponId}"><img src="../images/hgds.png" alt=""></a>`
})